﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum AdminState
    {
        /// <summary>
        /// 锁定
        /// </summary>
        Disabled = 0,
        /// <summary>
        /// 正常
        /// </summary>
        Enabled=1,
    }

    public static class AdminStateEx
    {
        public static string Name(this AdminState state)
        {
            switch (state)
            { 
                case AdminState.Disabled:
                    return "锁定";
                case AdminState.Enabled:
                    return "正常";
                default:
                    return string.Empty;
            }
        }
    }
}
